<article class="post">
  <header class="post-head">
    <h2 class="post-title">
      <a>{{.postData.post.Title}}</a>
    </h2>
    <time datetime="{{unixToFormatString .postData.post.Pubdate "YYYY,MM,DD"}}" class="post-time">{{unixToFormatString .postData.post.Pubdate "YYYY,MM,DD"}}</time>
  </header>
  <section class="post-content typo">{{Html (markdownToHtml .postData.post.Content|replaceMore)}}</section>
  <footer class="post-footer clear">
    <span class="post-tags clear">
      <a href="/category/{{.postData.category.Id}}">{{.postData.category.Name}}</a>
	</span>
    <span class="post-next-prev">
	{{if .prePostData}}
		<span class="prev"><a href="/archives/{{.prePostData.post.Id}}" title="{{.prePostData.post.Title}}">{{.prePostData.post.Title}}</a></span>
	{{else}}
		<span class="prev">已经是第一篇了</span>
	{{end}}
	{{if .nextPostData}}
		<span class="next"><a href="/archives/{{.nextPostData.post.Id}}" title="{{.nextPostData.post.Title}}">{{.nextPostData.post.Title}}</a></span>
	{{else}}
		<span class="next">已经是最后一篇了</span>
	{{end}}
    </span>
  </footer>
</article>

<!-- 多说评论框 start -->
<section id="comment-list">
<div class="ds-thread" data-thread-key="{{.postData.post.Id}}" data-title="{{.postData.post.Title}}" data-url="http://silenceper.com/archives/{{.postData.post.Id}}"></div>
</section>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"silenceper"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		 || document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
	</script>
<!-- 多说公共JS代码 end -->
